#ifndef _RESOURCEMNGR_H_
#define _RESOURCEMNGR_H_

#include <string>
#include <map>

#include "model.h"
#include "font.h"
#include "pathmngr.h"

using namespace std;

class resourcemngr
{
public:
	resourcemngr();
	~resourcemngr();

	void load(xml_node& _node);
	void unload();

	texture* get_texture(const char* _fname);
	model*   get_model(const char* _fname);
	font*	 get_font(const char* _fname);

private:
	map<string,texture*> m_textures;
	map<string,font*>    m_fonts;
	map<string,model*>   m_models;
};

#endif